import request from './axios.config.js'
export function getShopList(page, limit, name, sort) {
  page = page || 1
  limit = limit || 10
  name = name || ''
  if (sort.order == null || sort.order === '') {
    sort = {
      key: '',
      order: ''
    }
  }
  return request({
    url: `/getShopList?page=${page}&limit=${limit}&name=${name}&keyVal=${sort.key}&order=${sort.order}`,
    method: 'get'
  })
}
